import instance from '../utils/request'

//登录
export const getLogin = (data) => instance({
    url:'http://localhost:8080/login',
    method:'post',
    data:data
})
// 获取数据
export const getdata = (data) => instance({
    url:'/api/random-data',
    method:'get',
    params:data
})

//添加数据
export const getadd = (data) => instance({
    url:'/api/add-data',
    method:'post',
    data:data
})